package com.dc.designPattern._22_responsibilitychain.extend.extend2;

/**
 * Description: 责任链模式_具体处理者_父亲
 * @author: gdc
 * @date: 2021/6/28
 * @version 1.0
 */
public class Father extends IHandler {

    public Father() {
        super(IHandler.FATHER_LEVEL);
    }

    @Override
    public void response(IWomen women) {
        System.out.println("---------- 女儿向父亲的请求 -----------");
        System.out.println(women.getRequest());
        System.out.println("父亲的答复是：同意\n");
    }
}
